<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人简历</title>
    <link rel="stylesheet" href="/dev/plugins/layui/layui/css/layui.css">
    <link rel="stylesheet" href="/dev/plugins/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/dev/assets/css/job/page/resume.css">
    <link rel="icon" href="/dev/assets/img/geek-job/wanli.jpg" type="image/x-icon">
    <script>
        e();

        function e() {
            // 在这里执行条件检查
            let token = localStorage.getItem("token")
            if (token == null) {
                // 执行页面跳转
                window.location.href = '/dev/views/job/page/login.html';
            }
        }
    </script>
</head>

<body>
<div id="nav-resume"></div>
<div id="wrap" class="has-header has-footer">
    <div class="data-v-7d71e0fa">
        <div id="header"></div>
    </div>
    <div id="main" class="resume-inner">
        <div id="container" class="resume-container">
            <div class="resume-catalogue">
                <div class="resume-catalogue-group">
                    <h3 class="catalogue-title main-title">简历目录</h3>
                    <ul class="catalogue-list">
                        <li >
                            <a href="#userinfo" class="catalogue-item">
                                <span>个人信息</span>
                            </a>
                        </li>
                        <li >
                            <a href="#summary" class="catalogue-item">
                                <span>个人优势</span>
                            </a>
                        </li>
                        <li >
                            <a href="#purpose" class="catalogue-item">
                                <span>期望职位</span>
                            </a>
                        </li>
                        <li >
                            <a href="#history" class="catalogue-item">
                                <span>工作/实习经历</span>
                            </a>
                        </li>
                        <li >
                            <a href="#education" class="catalogue-item">
                                <span>教育经历</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="resume-content">
                <div class="resume-content-box" id="contentbox">
                    <div class="resume-box-header">
                        <h2>我的在线简历</h2>
                        <div class="header-right">
                            <a href="#" class="link-preview-resume">预览</a>
                            <a href="javascript:;" type="file" class="link-import-resume"
                               id="ID-upload-demo-form-files">导入已有简历</a>
                            <a href="#" class="link-create-resume" target="_blank">导出为附件简历</a>
                        </div>
                    </div>
                    <div class="resume-box resume-center">
                        <div id="userinfo" class="resume-item resume-userinfo resume-baseInfo">
                            <div id="userInfo-one">
                                <div class="item-primary baseinfo-container">
                                    <div class="header-upload">
                                        <div class="header-box">
                                            <div class="header-mask"></div>
                                            <img src="img/头像_15.png" alt="" class="header-img" style="width: 80px;height: 80px" height="56">
                                        </div>
                                    </div>
                                    <div class="user-info">
                                        <p class="name" id="username">高贤甫</p>
                                        <div class="info-flex">
                                            <div class="info-flex-item">
                                                <div class="info-lables" style="position: relative;margin-top: 20px;">
                                                    <p>
                                                        <span class="prev-line" id="userage">
                                                            <i class="fz-resume fz-experience"></i>
                                                            24年应届生
                                                        </span>
                                                        <span class="prev-line" id="userjobseek">
                                                            <i class="fz-resume fz-degree"></i>
                                                            本科
                                                        </span>
                                                        <span class="prev-line" id="employment">
                                                            <i class="fz-resume fz-status"></i>
                                                            在校-暂不考虑
                                                        </span>
                                                        <span class="prev-line" id="telephone">
                                                            <i class="layui-icon layui-icon-cellphone-fine"></i>
                                                            133******62
                                                        </span>
                                                    </p>
                                                    <div data-v-fbe6c650 class="op">
                                                        <a href="#" class="link-edit">
                                                            <span>编辑</span>
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="userInfo-two" style="display: none;">
                                <div id="information" style="padding: 30px;">
                                    <span><h4>编辑个人信息</h4></span>
                                    <form class="layui-form layui-row layui-col-space16" style="margin-top: 24px;">
                                        <div class="layui-col-md6">
                                            <span>姓名</span>
                                            <input type="text" name="姓名" value="" id="input-username" placeholder="请输入您的姓名" class="layui-input">
                                        </div>
                                        <div class="layui-col-md6">
                                            <span>当前求职状态</span>
                                            <select name="状态" id="input-jobSeeker">
                                                <option value="0">职途中</option>
                                                <option value="1">已入职</option>
                                                <option value="2">到处看看</option>
                                            </select>
                                        </div>
                                        <div class="layui-col-md6">
                                            <span>性别</span>
                                            <br>
                                            <input type="radio" name="性别" value="1" title="男">
                                            <input type="radio" name="性别" value="2" title="女">
                                        </div>
                                        <div class="layui-col-md6">
                                            <span>我的身份</span>
                                            <select name="身份" id="input-employment">
                                                <option value="0">职场小白</option>
                                                <option value="1">学生</option>
                                                <option value="2">职场精英</option>
                                                <option value="3">职场大佬</option>
                                            </select>
                                        </div>
                                        <div class="layui-col-md6">
                                            <span>出生年月日</span>
                                            <input type="text" name="出生日期" required placeholder="请选择您的出生日期"
                                                   class="layui-input demo-search-date" id="input-birthday">
                                        </div>
                                        <div class="layui-col-md6">
                                            <span>电话</span>
                                            <input type="text" name="电话" placeholder="请输入您的电话" class="layui-input" id="input-telephone">
                                        </div>
                                        <div class="layui-col-md6 layui-input-inline layui-inline">
                                            <span>邮箱（选填）</span>
                                            <input type="text" name="邮箱" autocomplete="off" lay-verify="email"
                                                   placeholder="请输入您的邮箱" class="layui-input" id="input-email">
                                        </div>
                                        <div class="layui-btn-container layui-col-xs12">
                                            <button class="layui-btn" lay-submit lay-filter="demo-search">确定</button>
                                            <button type="button" class="layui-btn layui-btn-primary" id="cancel"
                                                    lay-on="test-alert-btn">取消
                                            </button>
                                        </div>
                                    </form>
                                </div>
                            </div>

                        </div>
                        <div id="summary" class="resume-item resume-summary resume-userDesc">
                            <div id="summary-one">
                                <div class="item-primary advantage-show has-garbage-tag" data-scroll="userDesc">
                                    <h3 class="title"> 个人优势 <!----></h3>
                                    <ul>
                                        <div class="garbage-tag-tip" id="input-userGood">
                                            <p>发现你的这段内容需继续完善，快去补充吧</p>
                                            <!--                                            <p class="operate">补充</p>-->
                                        </div>
                                    </ul>
                                </div><!---->
                            </div>
                            <div id="summary-two" style="padding: 30px; background-color: #fff9f5; display: none;">
                                <form class="layui-form">
                                    <div class="layui-form-item layui-form-text">
                                        <div>
                                            <h4>编辑个人优势</h4>
                                            <br>
                                            <textarea placeholder="请输入内容" name="个人优势" class="layui-textarea"
                                                      maxlength="200"></textarea>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">提交
                                        </button>
                                        <button type="button" class="layui-btn layui-btn-primary"
                                                lay-on="summary-cancel">取消
                                        </button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div id="purpose" class="resume-item resume-purpose resume-expectList">
                            <div data-v-26ef17ee="" class="item-primary" data-scroll="expectList"
                                 onmouseover="parmoOver(this)" onmouseout="parmoOut(this)">
                                <h3 class="title"> 期望职位
                                    <a href="javascript:appendPurpose();" ka="user-resume-add-expectation"
                                       class="link-add">
                                        <span>添加</span>
                                    </a>
                                </h3>
                                <ul id="purpose-append">
<!--                                    <li data-v-26ef17ee="" ka="user-resume-edit-expectation0" class="purpose-li">-->
<!--                                        <div class="primary-info" onmouseover="moOver(this)"-->
<!--                                             onmouseout="moOut(this)" id="editors-a1">-->
<!--                                            <div data-v-26ef17ee="" class="info-labels expectation-list"><span-->
<!--                                                    data-v-26ef17ee="" class="split-line position-item"><span-->
<!--                                                    data-v-26ef17ee=""-->
<!--                                                    class="label-text">Java</span></span><span-->
<!--                                                    data-v-26ef17ee=""-->
<!--                                                    class="split-line money-item">8-10K</span><span-->
<!--                                                    data-v-26ef17ee=""-->
<!--                                                    class="split-line industry-item">计算机软件</span><span-->
<!--                                                    data-v-26ef17ee="" class="split-line city-item">苏州</span>-->
<!--                                            </div>-->
<!--                                            <div class="op" onclick="editors(this)">-->
<!--                                                <a href="javascript:;"-->
<!--                                                   ka="user-resume-edit-expectation0"-->
<!--                                                   class="link-edit">-->
<!--                                                    <span>编辑</span>-->
<!--                                                </a>&lt;!&ndash;&ndash;&gt;-->
<!--                                            </div>-->
<!--                                        </div>-->
<!--                                        <div style="display: none" id="editors-b1">-->
<!--                                            <span>编辑</span>-->
<!--                                            <form class="layui-form layui-row layui-col-space16"-->
<!--                                                  style="margin-top: 24px;" id="input-hope">-->
<!--                                                <input type="hidden" value="" class="layui-input" name="hopeId">-->
<!--                                                <div class="layui-col-md6">-->
<!--                                                    <span>期望职位</span>-->
<!--                                                    <input type="text" name="期望职位" placeholder="请输期望的职位"-->
<!--                                                           class="layui-input">-->
<!--                                                </div>-->
<!--                                                <div class="layui-col-md6">-->
<!--                                                    <span>期望行业</span>-->
<!--                                                    <input type="text" name="期望行业" placeholder="请输期望的行业"-->
<!--                                                           class="layui-input">-->
<!--                                                </div>-->

<!--                                                <div class="layui-col-md6">-->
<!--                                                    <span>工作城市</span>-->
<!--                                                    <select name="工作城市">-->
<!--                                                        <option value="北京">北京</option>-->
<!--                                                        <option value="上海">上海</option>-->
<!--                                                        <option value="广州">广州</option>-->
<!--                                                        <option value="深圳">深圳</option>-->
<!--                                                    </select>-->
<!--                                                </div>-->

<!--                                                <div class="layui-col-md6">-->
<!--                                                    <span>薪资要求</span>-->
<!--                                                    <br>-->
<!--                                                    <div class="layui-input-inline" style="width: 150px;"-->
<!--                                                         onblur="inter(this)">-->
<!--                                                        <select name="薪资l" lay-filter="aihao">-->
<!--                                                            <option value="0"></option>-->
<!--                                                            <option value="1">面议</option>-->
<!--                                                            <option value="2">1k</option>-->
<!--                                                            <option value="3">2k</option>-->
<!--                                                            <option value="4">3k</option>-->
<!--                                                            <option value="5">4k</option>-->
<!--                                                            <option value="6">5k</option>-->
<!--                                                            <option value="7">6k</option>-->
<!--                                                            <option value="8">7k</option>-->
<!--                                                            <option value="9">8k</option>-->
<!--                                                            <option value="10">9k</option>-->
<!--                                                            <option value="11">10k</option>-->
<!--                                                            <option value="12">11k</option>-->
<!--                                                        </select>-->
<!--                                                    </div>-->
<!--                                                    <span style="padding-left: 14px">-</span>-->
<!--                                                    <div class="layui-input-inline"-->
<!--                                                         style="margin-left: 15px;width: 150px; pointer-events:none;">-->
<!--                                                        <select name="薪资r" lay-filter="aihao">-->
<!--                                                            <option value="0"></option>-->
<!--                                                            <option value="1"></option>-->
<!--                                                            <option value="2"></option>-->
<!--                                                            <option value="3"></option>-->
<!--                                                            <option value="4"></option>-->
<!--                                                        </select>-->
<!--                                                    </div>-->
<!--                                                </div>-->

<!--                                                <div class="layui-btn-container layui-col-xs12">-->
<!--                                                    <button class="layui-btn" lay-submit lay-filter="demo-editor">-->
<!--                                                        确定-->
<!--                                                    </button>-->
<!--                                                    <button type="button" class="layui-btn layui-btn-primary"-->
<!--                                                            lay-on="editor-cancel">取消-->
<!--                                                    </button>-->
<!--                                                </div>-->
<!--                                            </form>-->
<!--                                        </div>-->
<!--                                    </li>-->
                                </ul>
                            </div><!---->
                        </div>
                        <div id="history" class="resume-item resume-history resume-workExpList"
                             onmouseover="historyOver()" onmouseout="historyOut()">
                            <div class="item-primary">
                                <h3 class="title"> 工作/实习经历
                                    <a href="javascript:historyAppend();" ka="user-resume-add-workexp" class="link-add"
                                       id="historyAppends">
                                        <span>添加</span>
                                    </a>
                                </h3>
                                <ul id="practiceHistory">
                                    <!--工作/实习经历的li标签添加位置                                        -->
                                </ul>
                            </div><!---->
                        </div>
                        <div id="education" class="resume-item resume-education resume-educationExpList">
                            <div data-v-9c4a5dd2="" class="item-primary" onmouseover="studyExperienceBoxOver()" onmouseout="studyExperienceBoxOut()">
                                <h3 class="title"> 教育经历
                                    <a href="javascript:studyExperienceAdd();" id="studyExperience" ka="user-resume-add-eduexp"
                                                           class="link-add">
                                        <span>添加</span>
                                    </a>
                                </h3>
                                <ul id="studyExperience-ul">
                                    <!--教育经历导入处-->
                                </ul>
                            </div><!---->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" id="page_key_name" value="cpc_resume">
</div>
<script src="/dev/plugins/jquery/jquery.min.js"></script>
<script src="/dev/plugins/bootstrap/js/bootstrap.js"></script>
<script src="/dev/plugins/layui/layui/layui.js"></script>
<script>
    let fir;
    let sec;
    let editorNew;

    let horfir;
    let horsec;
    let historyNew;

    let stufir;
    let stusec;
    let studyNew;
    let hisNum=0;
    $(function () {
        $('#nav-resume').load('/dev/views/common/nav.html')
        let id = localStorage.getItem("id");
        console.log("=====id=====")
        console.log(id)
        let username = document.querySelector("#username")
        let userage = document.querySelector("#userage")
        let userjobseek = document.querySelector("#userjobseek")
        let employment = document.querySelector("#employment")
        let telephone = document.querySelector("#telephone")
        let inputUsername = document.querySelector("#input-username")
        let inputJobseeker = document.querySelector("#input-jobSeeker")
        let inputEmployment = document.querySelector("#input-employment")
        let inputTelephone = document.querySelector("#input-telephone")
        let inputBirthday = document.querySelector("#input-birthday")
        let inputEmail = document.querySelector("#input-email")
        let inputUserGood=document.querySelector("#input-userGood")

        let headerImg = document.querySelectorAll(".header-img")[0]
        $.ajax({
            headers: {
                "id": localStorage.getItem("id"),
                "token": localStorage.getItem("token")
            },
            url: `/dev/jobSeeker/curric/${id}`,
            async: false,
            type: "POST",
            success: function (result) {
                console.log(result)
                if (result.code == 200) {
                    console.log("success=====>")
                    headerImg.src = `${result.data.avatar}`
                    userage.innerHTML=`<i class="layui-icon layui-icon-email"></i>${result.data.jsEmail}`
                    username.innerText = `${result.data.jsName}`
                    userjobseek.innerText=`${result.data.jobSeek}`
                    telephone.innerHTML=`<i class="layui-icon layui-icon-cellphone-fine"></i>
                                                            ${result.data.jsTelephone}`
                    employment.innerText=`${result.data.employment}`
                    inputBirthday.value=`${result.data.birthday}`
                    inputEmail.value = `${result.data.jsEmail}`
                    inputUsername.value=`${result.data.jsName}`
                    inputTelephone.value=`${result.data.jsTelephone}`
                    inputJobseeker.value=`${result.data.jobSeek}`
                    inputEmployment.value=`${result.data.employment}`
                    inputUserGood.innerHTML=`<p>${result.data.userGood}</p>`

                }
            }
        })

        $.ajax({
            headers:{
                "id":localStorage.getItem("id"),
                "token":localStorage.getItem("token")
            },
            url:"/dev/intention/findHopes",
            type:"post",
            data:{
                "jsId":localStorage.getItem("id")
            },
            success:function (result){
                console.log(result)
              if (result.code==200){

                  let purposeappend = document.querySelector("#purpose-append")
                  purposeappend.innerHTML=``
                  for (let i=0;i<result.data.length;i++){
                      purposeappend.innerHTML+=`<li data-v-26ef17ee="" ka="user-resume-edit-expectation0" class="purpose-li">
                                        <div class="primary-info" onmouseover="moOver(this)"
                                             onmouseout="moOut(this)" id="editors-a${i}">
                                            <div data-v-26ef17ee="" class="info-labels expectation-list"><span
                                                    data-v-26ef17ee="" class="split-line position-item"><span
                                                    data-v-26ef17ee=""
                                                    class="label-text">${result.data[i].position}</span></span><span
                                                    data-v-26ef17ee=""
                                                    class="split-line money-item">${result.data[i].payFloor}-${result.data[i].payUpper}</span><span
                                                    data-v-26ef17ee=""
                                                    class="split-line industry-item">${result.data[i].profession}</span><span
                                                    data-v-26ef17ee="" class="split-line city-item">${result.data[i].city}</span>
                                            </div>
                                            <div class="op" onclick="editors(this)">
                                                <a href="javascript:;"
                                                   ka="user-resume-edit-expectation0"
                                                   class="link-edit">
                                                    <span>编辑</span>
                                                </a><!---->
                                            </div>
                                        </div>
                                        <div style="display: none" id="editors-b${i}">
                                            <span>编辑</span>
                                            <form class="layui-form layui-row layui-col-space16"
                                                  style="margin-top: 24px;" id="input-hope">
                                                <input type="hidden" value="${result.data[i].id}" class="layui-input" name="hopeId">
                                                <div class="layui-col-md6">
                                                    <span>期望职位</span>
                                                    <input type="text" name="期望职位" placeholder="请输期望的职位" value="${result.data[i].position}"
                                                           class="layui-input">
                                                </div>
                                                <div class="layui-col-md6">
                                                    <span>期望行业</span>
                                                    <input type="text" name="期望行业" placeholder="请输期望的行业" value="${result.data[i].profession}"
                                                           class="layui-input">
                                                </div>

                                                <div class="layui-col-md6">
                                                    <span>工作城市</span>
                                                    <select name="工作城市">
                                                        <option value="北京">北京</option>
                                                        <option value="上海">上海</option>
                                                        <option value="广州">广州</option>
                                                        <option value="深圳">深圳</option>
                                                    </select>
                                                </div>

                                                <div class="layui-col-md6">
                                                    <span>薪资要求</span>
                                                    <br>
                                                    <div class="layui-input-inline" style="width: 150px;"
                                                         onblur="inter(this)">
                                                        <select name="薪资l" lay-filter="aihao">
                                                            <option value="0"></option>
                                                            <option value="1">面议</option>
                                                            <option value="2">1k</option>
                                                            <option value="3">2k</option>
                                                            <option value="4">3k</option>
                                                            <option value="5">4k</option>
                                                            <option value="6">5k</option>
                                                            <option value="7">6k</option>
                                                            <option value="8">7k</option>
                                                            <option value="9">8k</option>
                                                            <option value="10">9k</option>
                                                            <option value="11">10k</option>
                                                            <option value="12">11k</option>
                                                        </select>
                                                    </div>
                                                    <span style="padding-left: 14px">-</span>
                                                    <div class="layui-input-inline"
                                                         style="margin-left: 15px;width: 150px; pointer-events:none;">
                                                        <select name="薪资r" lay-filter="aihao">
                                                            <option value="0"></option>
                                                            <option value="1"></option>
                                                            <option value="2"></option>
                                                            <option value="3"></option>
                                                            <option value="4"></option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="layui-btn-container layui-col-xs12">
                                                    <button class="layui-btn" lay-submit lay-filter="demo-editor">
                                                        确定
                                                    </button>
                                                    <button type="button" class="layui-btn layui-btn-primary"
                                                            lay-on="editor-cancel">取消
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                    </li>`
                      layui.form.render()
                  }


              }
            }
        })

        $.ajax({
            headers:{
                "id":localStorage.getItem("id"),
                "token":localStorage.getItem("token")
            },
            type:"post",
            url:"/dev/workExperience/findWorkExperience",
            data:{
                "jsId":localStorage.getItem("id")
            },
            success:function (result){
                console.log(result)
                if (result.code==200){
                    let str=``
                    for (let i=0;i<result.data.length;i++){
                        str+=`<li>
                                            <div id="job-history-a${hisNum++}" onmouseover="moOver(this)"
                                                 onmouseout="moOut(this)">
                                                <div class="info-labels expectation-list">
                                                    <span class="split-line position-item">
                                                        <span class="label-text"><h4>我的工作/实习经历-${hisNum}</h4></span>
                                                    </span>
                                                </div>
                                                <div class="op" onclick="historys(this)">
                                                    <a href="javascript:;"
                                                       ka="user-resume-edit-expectation0"
                                                       class="link-edit">
                                                        <span>编辑</span>
                                                    </a><!---->
                                                </div>
                                            </div>
                                            <div id="job-history-b${hisNum-1}" style="display: none">
                                                <span>添加工作/实习经历</span>
                                                <form class="layui-form layui-row layui-col-space16"
                                                      style="margin-top: 24px;">
                                                    <div class="layui-col-md6">
                                                        <span>公司名称</span>
                                                        <input type="text" name="公司名称" placeholder="例如：苏州云建科技有限公司" value="${result.data[i].companyName}"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>所属行业</span>
                                                        <input type="text" name="所属行业" placeholder="输入行业名称" value="${result.data[i].profession}"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>所属部门（选填）</span>
                                                        <input type="text" name="所属部门" placeholder="例如：产品部" value="${result.data[i].section}"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>职位名称</span>
                                                        <input type="text" name="职位名称" placeholder="输入职位名称" value="${result.data[i].position}"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>在职时间</span>
                                                        <br>
                                                        <div class="layui-input-inline" style="width: 150px;"
                                                             onclick="historyParFir(this)"
                                                             onblur="historyPar(this)">
                                                            <select name="入职时间" lay-filter="aihao">

                                                            </select>
                                                        </div>
                                                        <span style="padding-left: 14px">至</span>
                                                        <div class="layui-input-inline"
                                                             style="margin-left: 15px;width: 150px;">
                                                            <select name="end" lay-filter="aihao">

                                                            </select>
                                                        </div>
                                                    </div>

                                                    <div class="layui-form-item layui-form-text">
                                                        <div>
                                                            <h4>工作内容</h4>
                                                            <br>
                                                            <textarea placeholder="请输入内容，上限1600字" name="工作内容" class="layui-textarea" maxlength="1600">${result.data[i].jobContent==null?"":result.data[i].jobContent}</textarea>
                                                        </div>
                                                    </div>

                                                    <div class="layui-form-item layui-form-text">
                                                        <div>
                                                            <h4>工作业绩（选填）</h4>
                                                            <br>
                                                            <textarea placeholder="请输入内容，上限300字" name="工作业绩" class="layui-textarea" maxlength="300">${result.data[i].workPerformance==null?"":result.data[i].workPerformance}</textarea>
                                                        </div>
                                                    </div>



                                                    <div class="layui-btn-container layui-col-xs12">
                                                        <button class="layui-btn" lay-submit lay-filter="demo-history">
                                                            确定
                                                        </button>
                                                        <button type="button" class="layui-btn layui-btn-primary"
                                                                lay-on="history-cancel">取消
                                                        </button>
                                                    </div>
                                                </form>
                                            </div>
                                        </li>`
                    }
                    document.getElementById("practiceHistory").innerHTML = str
                    layui.form.render()
                }
            }
        })


    })

    let userInfoOne = document.getElementById("userInfo-one");
    let userInfoTwo = document.getElementById("userInfo-two");
    userInfoOne.onclick = function () {
        userInfoOne.style.display = "none";
        userInfoTwo.style.display = "";
    }

    let summaryOne = document.getElementById("summary-one");
    let summaryTwo = document.getElementById("summary-two");
    summaryOne.onclick = function () {
        summaryOne.style.display = "none";
        summaryTwo.style.display = "";
    }


    layui.use(function () {
        var upload = layui.upload;
        var layer = layui.layer
        // 渲染
        upload.render({
            elem: '#ID-upload-demo-form-files',
            url: '', // 此处配置你自己的上传接口即可
            done: function (res) {
                layer.msg('上传成功');
                console.log(res)
            }
        });
    });

    layui.use(function () {
        var form = layui.form;
        var layer = layui.layer;
        var laydate = layui.laydate;
        var dropdown = layui.dropdown;
        var util = layui.util;

        // 提交
        form.on('submit(demo-search)', function (data) {
            layer.alert(JSON.stringify(data.field), {
                title: '当前填写的个人信息'
            });
            // 此处可执行 Ajax 等操作
            // …
            console.log(data.field.电话)
            $.ajax({
                headers: {
                    "id":localStorage.getItem("id"),
                    "token":localStorage.getItem("token")
                },
                url:"/dev/jobSeeker/update",
                type: "post",
                data:{
                    "id":localStorage.getItem("id"),
                    "jsName":data.field.姓名,
                    "jsSex":data.field.性别,
                    "jsTelephone":data.field.电话,
                    "jsEmail":data.field.邮箱,
                    "jobSeek":data.field.状态,
                    "birthday":data.field.出生日期,
                    "employment":data.field.身份
                },
                success:function (result){
                    console.log(result)
                }

            })
            userInfoOne.style.display = "";
            userInfoTwo.style.display = "none";
            return false; // 阻止默认 form 跳转
        });

        util.on('lay-on', {
            "test-alert-btn": function () {
                layer.alert('确定要退出编辑吗', {
                    title: '提示',
                    btn: ['确定', '取消'],
                    id: "qd",
                    btnAlign: 'c', // 按钮居中显示
                    btn1: function () {
                        userInfoOne.style.display = "";
                        userInfoTwo.style.display = "none";
                        layer.close("qd");
                    },
                    btn2: function () {
                    }
                });
            }
        })

        // 个人优势提交事件
        form.on('submit(demo1)', function (data) {
            var field = data.field; // 获取表单字段值
            // 显示填写结果，仅作演示用
            console.log(data)
            console.log(field)
            layer.alert(JSON.stringify(field), {
                title: '当前填写的字段值'
            });
            summaryOne.style.display = "";
            summaryTwo.style.display = "none";
            // 此处可执行 Ajax 等操作
            // …
            $.ajax({
                headers:{
                    "id":localStorage.getItem("id"),
                    "token":localStorage.getItem("token")
                },
                url:"/dev/curriculum/userGood",
                type:"post",
                data:{
                  "jsId":localStorage.getItem("id"),
                  "userGood": data.field.个人优势
                },
                success:function (result){
                    console.log(result)
                    if (result.code==200){
                        let inputUserGood = document.querySelector("#input-userGood")
                        inputUserGood.innerHTML=`<p>${data.field.个人优势}</p>`
                    }
                }
            })
            return false; // 阻止默认 form 跳转
        });

        util.on('lay-on', {
            "summary-cancel": function () {
                layer.alert('确定要退出编辑吗', {
                    title: '提示',
                    btn: ['确定', '取消'],
                    id: "summary-c",
                    btnAlign: 'c', // 按钮居中显示
                    btn1: function () {
                        summaryOne.style.display = "";
                        summaryTwo.style.display = "none";
                        layer.close("summary-c");
                    },
                    btn2: function () {
                    }
                });
            }
        })


        // 期望职位提交事件
        form.on('submit(demo-editor)', function (data) {
            var field = data.field; // 获取表单字段值
            // 显示填写结果，仅作演示用
            console.log(data)
            layer.alert(JSON.stringify(field), {
                title: '当前填写的字段值'
            });
            document.getElementById(fir).style.display = ""
            document.getElementById(sec).style.display = "none"
            // 此处可执行 Ajax 等操作
            // …
            $.ajax({
                headers:{
                    "id":localStorage.getItem("id"),
                    "token":localStorage.getItem("token")
                },
                url:"/dev/intention/saveOrUpdateHope",
                type:"post",
                data:{
                    "id":data.field.hopeId,
                    "jsId":localStorage.getItem("id"),
                    "position":data.field.期望职位,
                    "profession":data.field.期望行业,
                    "city":data.field.工作城市,
                    "payFloor":data.field.薪资l,
                    "payUpper":data.field.薪资r
                },
                success:function (result){
                    if (result.code==200){
                        window.location='/dev/views/job/page/resume.html'
                    }
                }
            })
            return false; // 阻止默认 form 跳转
        });

        util.on('lay-on', {
            "editor-cancel": function () {
                layer.alert('确定要退出编辑吗', {
                    title: '提示',
                    btn: ['确定', '取消'],
                    id: "editor-cancel-s",
                    btnAlign: 'c', // 按钮居中显示
                    btn1: function () {

                        // console.log(this)
                        document.getElementById(fir).style.display = ""
                        document.getElementById(sec).style.display = "none"
                        console.log(fir)
                        console.log(sec)
                        fir = ""
                        if (editorNew != null && editorNew != "") {
                            editors(editorNew)
                        }

                        layer.close("editor-cancel-s");
                    },
                    btn2: function () {
                        console.log("点击了取消")
                        console.log(fir)
                        console.log(sec)
                        console.log("点击了取消")
                    }
                });
            }
        })


        // 工作/实习经历提交事件
        form.on('submit(demo-history)', function (data) {
            var field = data.field; // 获取表单字段值
            // 显示填写结果，仅作演示用
            console.log(data)
            layer.alert(JSON.stringify(field), {
                title: '当前填写的字段值'
            });
            // console.log(document.getElementById(horfir))
            // console.log(document.getElementById(horsec))
            document.getElementById(horfir).style.display = ""
            document.getElementById(horsec).style.display = "none"
            bottonHis = true
            // 此处可执行 Ajax 等操作
            // …
            $.ajax({
                headers:{
                    "id":localStorage.getItem("id"),
                    "token":localStorage.getItem("token")
                },
                type:"post",
                url:"/dev/workExperience/saveOrUpdateWorkExperience",
                data:{
                    "id":data.field.workExperienceid,
                    "jsId":localStorage.getItem("id"),
                    "companyName":data.field.公司名称,
                    "profession":data.field.所属行业,
                    "section":data.field.所属部门,
                    "position":data.field.职位名称,
                    "entryTime":data.field.入职时间,
                    "dimissionTime":data.field.end,
                    "jobContent":data.field.工作内容,
                    "workPerformance":data.field.工作业绩
                },
                success:function (result){
                    console.log(result)
                    if (result.code==200){
                        window.location='/dev/views/job/page/resume.html'
                    }
                }

            })
            return false; // 阻止默认 form 跳转
        });

        util.on('lay-on', {
            "history-cancel": function () {
                layer.alert('确定要退出编辑吗', {
                    title: '提示',
                    btn: ['确定', '取消'],
                    id: "history-cancel-s",
                    btnAlign: 'c', // 按钮居中显示
                    btn1: function () {
                        document.getElementById(horfir).style.display = ""
                        document.getElementById(horsec).style.display = "none"
                        console.log(horfir)
                        console.log(horsec)
                        horfir = ""
                        if (historyNew != null && historyNew != "") {
                            historys(historyNew)
                        }
                        bottonHis = true
                        layer.close("history-cancel-s");
                    },
                    btn2: function () {
                        console.log("点击了取消")
                        console.log(horfir)
                        console.log(horsec)
                        console.log("点击了取消")
                    }
                });
            }
        })


        //教育经历提交事件
        form.on('submit(demo-study)', function (data) {
            var field = data.field; // 获取表单字段值
            // 显示填写结果，仅作演示用
            layer.alert(JSON.stringify(field), {
                title: '当前填写的字段值'
            });
            document.getElementById(stufir).style.display = ""
            document.getElementById(stusec).style.display = "none"
            studyT = true
            // 此处可执行 Ajax 等操作
            // …
            return false; // 阻止默认 form 跳转
        });

        util.on('lay-on', {
            "study-cancel": function () {
                layer.alert('确定要退出编辑吗', {
                    title: '提示',
                    btn: ['确定', '取消'],
                    id: "study-cancel-s",
                    btnAlign: 'c', // 按钮居中显示
                    btn1: function () {
                        console.log(stufir)
                        console.log(stusec)
                        document.getElementById(stufir).style.display = ""
                        document.getElementById(stusec).style.display = "none"
                        stufir=""
                        if (studyNew != null && studyNew != "") {
                            studyExperienceCompile(studyNew)
                        }
                        studyT = true
                        layer.close('study-cancel-s')
                    },
                    btn2: function () {
                        console.log("点击了取消")
                    }
                });
            }
        })

        // 日期
        laydate.render({
            elem: '.demo-search-date'
        });
    });

    function parmoOver(is) {
        is.children[0].children[0].style.display = "block"
    }

    function parmoOut(is) {
        is.children[0].children[0].style.display = "none"
    }


    function moOver(is) {
        is.children[1].style.display = "block"
        is.parentNode.style.backgroundColor = "#fff";
    }

    function moOut(is) {
        is.children[1].style.display = "none"
        is.parentNode.style.backgroundColor = "";
    }

    function inter(is) {
        console.log(is.children[0].value)
        if (is.children[0].value === "1") {

            is.parentNode.children[3].style.display = "none"
            is.parentNode.children[4].style.display = "none"
            console.log(is.parentNode.children[3].style.display)
        }

        if (is.children[0].value !== "1" && is.children[0].value !== "") {
            is.parentNode.children[3].style.display = ""
            is.parentNode.children[4].style.display = ""
            is.parentNode.children[4].style.pointerEvents = ""
            let str = ""
            for (let i = 0; i < 5; i++) {
                str += `<option value="${i}">${Number(is.children[0].value) + i}k</option>`
            }
            // console.log(is.parentNode.children[4].children[0])
            is.parentNode.children[4].children[0].innerHTML = str
            layui.form.render()
        }
    }

    function editors(is) {
        if (document.getElementById(fir) != null && document.getElementById(fir).style.display == "none") {
            $(document.getElementById(sec).children[1].children[4].children[1]).click()
            editorNew = is
        } else {
            console.log("=====")
            console.log(is)
            console.log("=====")
            is.parentNode.style.display = "none"
            is.parentNode.parentNode.children[1].style.display = ""
            fir = is.parentNode.id
            sec = is.parentNode.parentNode.children[1].id
            editorNew = ""
        }
    }

    let purposeAppend = document.getElementById("purpose-append")

    function appendPurpose() {
        let addpur = Number(purposeAppend.children.length) + 1
        let src = `<li data-v-26ef17ee="" ka="user-resume-edit-expectation0" class="purpose-li">
                                            <div class="primary-info" onmouseover="moOver(this)"
                                                 onmouseout="moOut(this)" id="editors-a${addpur}">
                                                <div data-v-26ef17ee="" class="info-labels expectation-list"><span
                                                        data-v-26ef17ee="" class="split-line position-item"><span
                                                        data-v-26ef17ee=""
                                                        class="label-text">Java</span></span><span
                                                        data-v-26ef17ee=""
                                                        class="split-line money-item">8-10K</span><span
                                                        data-v-26ef17ee=""
                                                        class="split-line industry-item">计算机软件</span><span
                                                        data-v-26ef17ee="" class="split-line city-item">苏州</span>
                                                </div>
                                                <div class="op" onclick="editors(this)">
                                                    <a href="javascript:;"
                                                       ka="user-resume-edit-expectation0"
                                                       class="link-edit">
                                                        <span>编辑</span>
                                                    </a><!---->
                                                </div>
                                            </div>
                                            <div style="display: none" id="editors-b${addpur}">
                                                <span>编辑</span>
                                                <form class="layui-form layui-row layui-col-space16"
                                                      style="margin-top: 24px;">
                                                    <div class="layui-col-md6">
                                                        <span>期望职位</span>
                                                        <input type="text" name="期望职位" placeholder="请输期望的职位"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>期望行业</span>
                                                        <input type="text" name="期望行业" placeholder="请输期望的行业"
                                                               class="layui-input">
                                                    </div>

                                                    <div class="layui-col-md6">
                                                        <span>工作城市</span>
                                                        <select name="工作城市">
                                                            <option value="北京">北京</option>
                                                            <option value="上海">上海</option>
                                                            <option value="广州">广州</option>
                                                            <option value="深圳">深圳</option>
                                                        </select>
                                                    </div>

                                                    <div class="layui-col-md6">
                                                        <span>薪资要求</span>
                                                        <br>
                                                        <div class="layui-input-inline" style="width: 150px;"
                                                             onblur="inter(this)">
                                                            <select name="薪资l" lay-filter="aihao">
                                                                <option value="0"></option>
                                                                <option value="1">面议</option>
                                                                <option value="2">1k</option>
                                                                <option value="3">2k</option>
                                                                <option value="4">3k</option>
                                                                <option value="5">4k</option>
                                                                <option value="6">5k</option>
                                                                <option value="7">6k</option>
                                                                <option value="8">7k</option>
                                                                <option value="9">8k</option>
                                                                <option value="10">9k</option>
                                                                <option value="11">10k</option>
                                                                <option value="12">11k</option>
                                                            </select>
                                                        </div>
                                                        <span style="padding-left: 14px">-</span>
                                                        <div class="layui-input-inline"
                                                             style="margin-left: 15px;width: 150px; pointer-events:none;">
                                                            <select name="薪资r" lay-filter="aihao">
                                                                <option value="0"></option>
                                                                <option value="1"></option>
                                                                <option value="2"></option>
                                                                <option value="3"></option>
                                                                <option value="4"></option>
                                                            </select>
                                                        </div>
                                                    </div>

                                                    <div class="layui-btn-container layui-col-xs12">
                                                        <button class="layui-btn" lay-submit lay-filter="demo-editor">
                                                            确定
                                                        </button>
                                                        <button type="button" class="layui-btn layui-btn-primary"
                                                                lay-on="editor-cancel">取消
                                                        </button>
                                                    </div>
                                                </form>
                                            </div>
                                        </li>`
        purposeAppend.innerHTML += src;
        layui.form.render()
    }


    let bottonHis = true

    function historyParFir(is) {
        if (bottonHis) {
            for (let i = 2010; i <= new Date().getFullYear(); i++) {
                is.children[0].innerHTML += `<option value="${i}">${i}</option>`
            }
            layui.form.render()
            bottonHis = false
        }
    }

    function historyPar(is) {
        console.log(is)
        let src = ''
        for (let i = is.children[0].value; i <= new Date().getFullYear(); i++) {
            src += `<option value="${i}">${i}</option>`
        }
        is.parentNode.children[4].children[0].innerHTML = src
        layui.form.render()
    }

    let historyAppends = document.getElementById("historyAppends")

    function historyOver() {
        historyAppends.style.display = "block"
    }

    function historyOut() {
        historyAppends.style.display = ""
    }

    function historys(is) {
        if (document.getElementById(horfir) != null && document.getElementById(horfir).style.display == "none") {
            $(document.getElementById(horsec).children[1].children[7].children[1]).click()
            historyNew = is
        } else {
            console.log("=====")
            console.log(is)
            console.log("=====")
            is.parentNode.style.display = "none"
            is.parentNode.parentNode.children[1].style.display = ""
            horfir = is.parentNode.id
            horsec = is.parentNode.parentNode.children[1].id
            historyNew = ""
        }
    }


    function historyAppend() {
        let hisNum = document.getElementById("practiceHistory").children.length
        let str = `<li>
                                            <div id="job-history-a${hisNum}" onmouseover="moOver(this)"
                                                 onmouseout="moOut(this)">
                                                <div class="info-labels expectation-list">
                                                    <span class="split-line position-item">
                                                        <span class="label-text"><h4>我的工作/实习经历-${hisNum + 1}</h4></span>
                                                    </span>
                                                </div>
                                                <div class="op" onclick="historys(this)">
                                                    <a href="javascript:;"
                                                       ka="user-resume-edit-expectation0"
                                                       class="link-edit">
                                                        <span>编辑</span>
                                                    </a><!---->
                                                </div>
                                            </div>
                                            <div id="job-history-b${hisNum}" style="display: none">
                                                <span>添加工作/实习经历</span>
                                                <form class="layui-form layui-row layui-col-space16"
                                                      style="margin-top: 24px;">
                                                    <div class="layui-col-md6">
                                                        <span>公司名称</span>
                                                        <input type="text" name="公司名称" placeholder="例如：苏州云建科技有限公司"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>所属行业</span>
                                                        <input type="text" name="所属行业" placeholder="输入行业名称"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>所属部门（选填）</span>
                                                        <input type="text" name="所属部门" placeholder="例如：产品部"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>职位名称</span>
                                                        <input type="text" name="职位名称" placeholder="输入职位名称"
                                                               class="layui-input">
                                                    </div>
                                                    <div class="layui-col-md6">
                                                        <span>在职时间</span>
                                                        <br>
                                                        <div class="layui-input-inline" style="width: 150px;"
                                                             onclick="historyParFir(this)"
                                                             onblur="historyPar(this)">
                                                            <select name="入职时间" lay-filter="aihao">

                                                            </select>
                                                        </div>
                                                        <span style="padding-left: 14px">至</span>
                                                        <div class="layui-input-inline"
                                                             style="margin-left: 15px;width: 150px;">
                                                            <select name="end" lay-filter="aihao">

                                                            </select>
                                                        </div>
                                                    </div>

                                                    <div class="layui-form-item layui-form-text">
                                                        <div>
                                                            <h4>工作内容</h4>
                                                            <br>
                                                            <textarea placeholder="请输入内容，上限1600字" name="工作内容" class="layui-textarea" maxlength="1600"></textarea>
                                                        </div>
                                                    </div>

                                                    <div class="layui-form-item layui-form-text">
                                                        <div>
                                                            <h4>工作业绩（选填）</h4>
                                                            <br>
                                                            <textarea placeholder="请输入内容，上限300字" name="工作业绩" class="layui-textarea" maxlength="300"></textarea>
                                                        </div>
                                                    </div>



                                                    <div class="layui-btn-container layui-col-xs12">
                                                        <button class="layui-btn" lay-submit lay-filter="demo-history">
                                                            确定
                                                        </button>
                                                        <button type="button" class="layui-btn layui-btn-primary"
                                                                lay-on="history-cancel">取消
                                                        </button>
                                                    </div>
                                                </form>
                                            </div>
                                        </li>`
        document.getElementById("practiceHistory").innerHTML += str
        hisNum++
        layui.form.render()

    }


    //教育经历相关事件
    let studyExperience = document.getElementById("studyExperience")
    function studyExperienceBoxOver(){
        studyExperience.style.display="block"
    }
    function studyExperienceBoxOut(){
        studyExperience.style.display=""
    }

    function studyExperienceOver(is){
        is.children[1].style.display="block"
        is.style.backgroundColor="white"
    }
    function studyExperienceOut(is){
        is.children[1].style.display=""
        is.style.backgroundColor=""
    }

    let studyT = true
    function studyTime(is){
        if (studyT){
            let str = ''
            for (let i = 1990; i <= new Date().getFullYear(); i++) {
                str += `<option value="${i}">${i}</option>`
            }
            console.log(is)
            is.children[0].innerHTML += str
            layui.form.render()
            studyT = false
        }
    }


    function graduateTime(is){
        console.log(is)
        let src = ''
        for (let i = is.children[0].value; i <= Number(is.children[0].value)+8; i++) {
            src += `<option value="${i}">${i}</option>`
        }
        is.parentNode.children[4].children[0].innerHTML = src
        layui.form.render()
    }


    let studyExperienceUl = document.getElementById("studyExperience-ul")
    function studyExperienceAdd(){
        let numS = Number(studyExperienceUl.children.length)+1
        studyExperienceUl.innerHTML+=`
                                    <li ka="user-resume-edit-eduexp0" class=""
                                        data-scroll="b3a6c7c107ab34201ndy3tS4GFtY">
                                        <div id="studySh-${numS}" class="primary-info" onmouseover="studyExperienceOver(this)" onmouseout="studyExperienceOut(this)" >
                                            <div class="school-badge-wrapper">
                                                <img class="school-badge" style="height: 48px" src="/dev/assets/img/employment-img/教育.png">
                                                <div data-v-9c4a5dd2="" class="school-info">
                                                    <span class="school-name">江苏科技大学苏州理工学院</span>
                                                    <span class="school-period">2020-2024</span>
                                                </div>
                                                <ul data-v-9c4a5dd2="" class="school-attr-list">
                                                    <li data-v-9c4a5dd2="">软件工程</li>
                                                    <li data-v-9c4a5dd2="">本科<!----></li>
                                                </ul>
                                            </div>
                                            <div class="op" onclick="studyExperienceCompile(this)">
                                                <a href="javascript:;" ka="user-resume-edit-eduexp0"
                                                   class="link-edit">
                                                    <span>编辑</span>
                                                </a><!---->
                                            </div>
                                        </div>

                                        <div id="studyEx-${numS}" style="display: none">
                                            <span><h4 style="font-weight: bold">编辑教育经历</h4></span>
                                            <form class="layui-form layui-row layui-col-space16"
                                                  style="margin-top: 24px;">
                                                <div class="layui-col-md6">
                                                    <span>学校名称</span>
                                                    <input type="text" name="学校名称" placeholder="例如：北京大学"
                                                           class="layui-input">
                                                </div>
                                                <div class="layui-col-md6">
                                                    <span>学制类型</span>
                                                    <select name="学制类型">
                                                        <option value="1">全日制</option>
                                                        <option value="2">非全日制</option>
                                                    </select>
                                                </div>

                                                <div class="layui-col-md6">
                                                    <span>学历</span>
                                                    <select name="学历">
                                                        <option value="0"></option>
                                                        <option value="1">初中及以下</option>
                                                        <option value="2">中专/中技</option>
                                                        <option value="3">高中</option>
                                                        <option value="4">大专</option>
                                                        <option value="5">本科</option>
                                                        <option value="6">硕士</option>
                                                        <option value="7">博士</option>
                                                    </select>
                                                </div>

                                                <div class="layui-col-md6">
                                                    <span>专业</span>
                                                    <input type="text" name="专业" placeholder="例如：计算机科学与技术"
                                                           class="layui-input">
                                                </div>

                                                <div class="layui-col-md12">
                                                    <span>时间段</span>
                                                    <br>
                                                    <div class="layui-input-inline" style="width: 430px;"
                                                         onclick="studyTime(this)"
                                                         onblur="graduateTime(this)">
                                                        <select name="入学时间" lay-filter="aihao">
                                                            <option value="0"></option>

                                                        </select>
                                                    </div>
                                                    <span style="margin-left: 5px">至</span>
                                                    <div class="layui-input-inline"
                                                         style="margin-left: 6px;width: 430px;">
                                                        <select name="毕业时间" lay-filter="aihao">

                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="layui-col-md12">
                                                    <span>主修课程（选填）</span>
                                                    <input type="text" name="主修课程" placeholder="请输入主修课程"
                                                           class="layui-input">
                                                </div>

                                                <div class="layui-col-md6">
                                                    <span>专业排名</span>
                                                    <select name="专业排名" >
                                                        <option value="x"></option>
                                                        <option value="0">前1%</option>
                                                        <option value="1">前3%</option>
                                                        <option value="2">前5%</option>
                                                        <option value="3">前10%</option>
                                                        <option value="4">前15%</option>
                                                        <option value="5">前20%</option>
                                                        <option value="6">前30%</option>
                                                        <option value="7">前40%</option>
                                                    </select>
                                                </div>

                                                <div class="layui-col-md12">
                                                    <span>在校经历</span>
                                                    <br>
                                                    <textarea placeholder="请输入内容" name="在校经历" class="layui-textarea"
                                                              maxlength="200"></textarea>
                                                </div>



                                                <div class="layui-btn-container layui-col-xs12">
                                                    <button class="layui-btn" lay-submit lay-filter="demo-study">
                                                        确定
                                                    </button>
                                                    <button type="button" class="layui-btn layui-btn-primary"
                                                            lay-on="study-cancel">取消
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                    </li>`
        layui.form.render()
    }

    function studyExperienceCompile(is){
        if (document.getElementById(stufir) != null && document.getElementById(stufir).style.display == "none"){
            $(document.getElementById(stusec).children[1].children[8].children[1]).click()
            studyNew = is
        } else {
            is.parentNode.style.display="none"
            is.parentNode.parentNode.children[1].style.display=""
            stufir = is.parentNode.id
            stusec = is.parentNode.parentNode.children[1].id
            studyNew = ""
        }

    }






</script>
</body>


</html>